//
//  ORDetailViewController.m
//  News
//
//  Created by rimi on 2016/12/6.
//  Copyright © 2016年 dongfumei. All rights reserved.
//

#import "ORDetailViewController.h"

@interface ORDetailViewController ()

@property (nonatomic, strong) UIWebView *webView;

@end

@implementation ORDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"详情";
    self.view.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:self.webView];
//    [self.webView loadHTMLString:self.url baseURL:nil];
    NSLog(@"%@",_url);
    NSURL *url = [NSURL URLWithString:_url];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [self.webView loadRequest:request];
    

}

-(UIWebView *)webView{
    if (!_webView) {
        _webView = [[UIWebView alloc]initWithFrame:AAdaptionRect(0, 0, kBaseWidth, kBaseHeight - 50)];
        _webView.backgroundColor = [UIColor whiteColor];
    }
    return _webView;
}


@end
